const config = {
  id: 'consumption',
  title: '中高端消费',
  icon: require('../images/consumption.png'),
  // subtitle:'辅助说明',
  dataType: 'json', //是否从json拉取数据绘制图层 原yearbook分类   //若不需要拉取数据 为service
  displayType: 'featureLayer', //migrateEchartLayer featureLayer
  // 若需通过json生成图层
  uniqueKey:'regionName',
  fieldJsonArray: [
    { name: 'OBJECTID', alias: 'ObjectID', type: 'oid' },
    { name: 'regionName', alias: 'regionName', type: 'string' },
    { name: 'consumeIndex', alias: 'consumeIndex', type: 'double' },
  ],
  // 场景参数
  initCamera: {
    heading: 0,
    tilt: 0.363,
    fov: 55,
    position: {
      latitude: 30.8,
      longitude: 119.34,
      z: 2406952,
    },
  },
  //底图
  basemapTitle: '深色底图',
  // 右侧面板显示参数
  hasTable: false,
  hasChart: false,
  hasDataInfo: true,
  // 年鉴数据为false 港口等需要通过数据库数据生成点时为true
  hasGeometryData: false,
  //是否打开图例
  hasLegend: true,
  // service图层
  serviceLayer: [],
  definitionExpression: "",
  //数据级别
  selectedDataLevel: '640100', //630100
  // 是否有时间轴  时间轴是否显示由timeSeries 决定
  hasTimeLine: false,
  unit:'',
  initTime: '',
  timeSeries: [],
  hoverEnabled: false,
  geometryType: 'polygon',
  renderer: {
    type: 'unique-value',
    defaultLabel: '无数据',
    defaultSymbol: {
      type: 'simple-fill',
      color: 'white',
      outline: {
        width: 0.1,
        color: [50, 50, 50, 0.6],
      },
    },
    visualVariables: [
      {
        type: 'color',
        field: 'consumeIndex',
        stops: [
          {
            value: 22,
            color: '#37c417',
            label: '22',
          },
          {
            value: 24,
            color: '#1ad746',
            label: '',
          },
          {
            value: 26,
            color: '#19ef76',
            label: '',
          },
          {
            value: 28,
            color: '#a7f8bc',
            label: '',
          },
          {
            value: 30,
            color: '#defd9d',
            label: '30',
          },
          {
            value: 32,
            color: '#fffe70',
            label: '',
          },
          {
            value: 34,
            color: '#ffff0c',
            label: '',
          },
          {
            value: 36,
            color: '#d7ce11',
            label: '',
          },
          {
            value: 38,
            color: '#fca11c',
            label: '',
          },
          {
            value: 40,
            color: '#ff3232',
            label: '40+',
          }
        ],
        legendOptions: {
          title: '中高端消费指数',
        },
      },
    ],
  },
};
export default config;
